Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 807 Bytes

File metadata and controls

33 lines (19 loc) · 807 Bytes

Erratic Tests

Definition:

  • Tests that will pass or fail without you changing anything

Code Example:

first(".active").click

all(".active").each(&:click)

execute_script("$('.active').focus()")

expect(find_field("Username").value).to eq("Joe")

expect(find(".user")["data-name"]).to eq("Joe")

expect(has_css?(".active")).to eq(false)

References:

Quality attributes